<?php
    header('Content-type:text/html;charset=utf-8');
    echo '<meta charset="UTF-8">';
    $file = @file("./data/chat.dat") or die("file not exists");
    foreach($file as $line){
        echo $line;
        echo '<br />';
    }
?>